<template>
  <div>
      <p>axios请求</p>
      <button @click="getData()">发送请求</button>
  </div>
</template>

<script>
export default {
    methods: {
        getData(){
            this.$http.get('https://api.imjad.cn/cloudmusic/?type=lyric&id=28012031')
            .then(res =>{
                console.log(res.data.tlyric.lyric);
            })
            .catch(err=>{
                console.log(err);
            })
        }
    },
}
</script>

<style>

</style>